#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>

int my_memcmp(void* str1, void* str2, size_t num)
{
	while (num--)
	{
		if (*(char*)str1 != *(char*)str2)
		{
			if (*(char*)str1 < *(char*)str2)
			{
				return -1;
			}
			else
			{
				return 1;
			}
		}
		str1 = (char*)str1 + 1;
		str2 = (char*)str2 + 1;
	}
	return 0;
}

int main()
{
	int a[10] = { 1,2,6,4,5,6,7,8,9,10 };
	int b[10] = { 1,2,3,4,5,6,7,8,9,10 };
	int ret = my_memcmp(a, b, 20);
	if (ret < 0)
	{
		printf("<\n");
	}
	else if (ret > 0)
	{
		printf(">\n");
	}
	else
	{
		printf("=\n");
	}
	return 0;
}